#include <stdio.h>

int main(int argc, char const *argv[])
{
    unsigned int nums;
    scanf("%u", &nums);

    int bit = 31;
    while (bit >= 0)
    {
        int calc = nums & (0x1 << bit) ? 1 : 0;
        printf("%d", calc);
        bit--;
    }
    putchar('\n');

    return 0;
}
